﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReportInterviewResults.aspx.cs"
    Inherits="BOH.AccreditationSystem.ReportInterviewResults" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../style/css.css" type="text/css" rel="Stylesheet" />

    <script src="../js/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../js/highcharts.js" type="text/javascript"></script>

    <script type="text/javascript">

        var chart;
        $(document).ready(function() {
            chart = new Highcharts.Chart({
                chart: {
                    renderTo: 'container',
                    plotBackgroundColor: null,
                    plotBorderWidth: null,
                    plotShadow: true
                },
                title: {
                    text: '上海市卫生人才评审系统面试结果通过率'
                },
                tooltip: {
                    formatter: function() {
                        return '<b>' + this.point.name + '</b>: ' + this.y + ' %';
                    }
                },
                plotOptions: {
                    pie: {
                        allowPointSelect: true,
                        cursor: 'pointer',
                        dataLabels: {
                            enabled: true,
                            color: '#000000',
                            connectorColor: '#000000',
                            formatter: function() {
                                return '<b>' + this.point.name + '</b>: ' + this.y + ' %';
                            }
                        }
                    }
                },
                series: [{
                    type: 'pie',
                    name: 'Browser share',
                    data: [
							['通过', <%= Passed %>],
							{
							    name: '未通过',
							    y: <%=UnPassed %>,
							    sliced: true,
							    selected: true
							}]
                        }]
                });
            });

    </script>
    <script>
    	function checkvilad()
	    {
	        var  str =  $("#drpSubject").val();
	        if(str == "-1")
	        {
	            alert("请选择学科组");
	            return false;
	        }
	        else
	            return true;
	    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="divNavigation">
        当前位置:<a href="OverView.aspx" target="frameControl">面试结果管理</a> >>面试结果报表
    </div>
    <div id="bodyDiv">
        <center>
            <div id="divSearch">
                <center>
                    <table width="98%" class="Grid">
                        <tr>
                            <td align="right" style="width: 120px;">
                                选择学科组:
                            </td>
                            <td align="left" width="180px">
                                <asp:DropDownList ID="drpSubject" runat="server">
                                    
                                </asp:DropDownList>
                            </td>
                            <td align="right" style="width: 120px;">
                                <asp:Button ID="butShow" runat="server" Text="查看" onclick="butShow_Click" Width="120px" OnClientClick="return checkvilad()" />
                            </td>
                            <td align="left">
                                
                            </td>
                        </tr>
                    </table>
                </center>
            </div>
            <div id="container" style="display:none"  runat="server">
            </div>
        </center>
    </div>
    </form>
</body>
</html>
